import Event from 'events'

const event = new Event.EventEmitter()

export default {
  emit: function(type, data) {
    event.emit(type, data)
  },
  on: function(type, callback) {
    event.on(type, callback)
  }
}
